import * as ShopDao from '../../dao/ShopDao'
export default {
    namespace: 'shop',
    state: {
        shopList:[],
    },
    reducers: {
        updateState(state, { payload }) {
            return { ...state, ...payload }
        },
    },
    effects: {
        *shopList({ payload }, { call, put ,select}) {
            const hid = yield select(state => state.user.userInfo.shopResult.hid)
            let params ={
                hid:hid,
                uaddr:'浙江省宁波市',
                ...payload
            }
            console.log(params);
            const data = yield call(ShopDao.shopList, params)
            console.log(data)
        }
    },
}